<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="cmd.css" rel="stylesheet" type="text/css">
<title>GRUB4DOS 其他菜单解释1</title>
</head>

<body>
<p><a href="./GRUB4DOS9-1菜单解释_内置.htm">内置菜单详解 </a><span class="Notes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="./GRUB4DOS9-2菜单解释_外置.htm">外置菜单详解</a> <span class="Notes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>其他菜单详解1 <span class="Notes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="./GRUB4DOS9-4菜单解释_其他2.htm">其他菜单详解2</a> <span class="Notes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="./GRUB4DOS9-5菜单解释_其他3.htm">其他菜单详解3</a></p>
<h2>其他菜单文件详解-1</h2>
<p>#====================<strong>&nbsp;初始化命令组</strong>（菜单头）部分=========================</p>
<p><span class="bat">debug</span> <strong>off</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;关闭debug模式</span><br>
  <span class="bat">checkrange</span> <strong>0x21</strong> <span class="bat">read</span> <strong>0x8280</strong> <span class="Options">&amp;&amp;</span> <span class="bat">pxe detect</span><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;检测当前是否为pxe启动，是的话执行 pxe detect 命令</span>  <br>
  <span class="bat">command</span> <span class="Options">--set-path=</span><strong>(bd)/GRUB/</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置外部命令所在位置（默认位置是/BOOT/GRUB/）</span>  <br>
  <span class="bat">color</span> <strong>white/blue blue/yellow light-red/blue 10</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单颜色</span>  <br>
  <span class="bat">default</span> <strong>1</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置默认启动项</span>  <br>
  <span class="bat">password</span> <span class="Options">--md5</span> <strong>$1$j3M3$UCvLwNAO7wmLQXnYtJQMv1</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置全局密码</span>  </p>
<p>#====================<strong>菜单项</strong>（菜单正文）=================================<BR>
  <BR>
  <span class="Options">title</span><strong> [01] Start Windows 2003 PE <span class="Options">\n</span> 2003 PE</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，&quot; \n &quot;后为菜单底部帮助信息，启动2003PE  </span><br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/WXPE/SETUPLDR.BIN</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /WXPE/SETUPLDR.BIN</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备/WXPE/目录下没有SETUPLDR.BIN文件，就在所有设备上寻找/WXPE/SETUPLDR.BIN文件，并将找到的设备设为根</span><br>
  <span class="bat">chainloader</span><strong> /WXPE/SETUPLDR.BIN</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;加载/WXPE/SETUPLDR.BIN文件</span>  <br>
  <span class="bat">boot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;确定进行启动，菜单中可以省略该句，命令行模式下不可省略</span></p>
<p><span class="Options">title</span><strong> [02] Start Windows 7 PE <span class="Options">\n</span> win 7 PE</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，&quot; \n &quot;后为菜单底部帮助信息，启动win7PE </span>  <br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/BOOTMGR</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /BOOTMGR</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备根目录下没有BOOTMGR文件，就在所有设备上寻找/BOOTMGR文件</span>  <span class="Notes">，并将找到的设备设为根</span><br>
  <span class="bat">chainloader</span><strong> /BOOTMGR</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;加载/BOOTMGR文件</span>  <br>
<span class="bat">boot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;确定进行启动，菜单中可以省略该句，命令行模式下不可省略</span></p>
<p><span class="Options">title</span> <strong>[03] Load USB 2.0 Module [USE PLPBT.BIN] </strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，加载USB2.0加速</span><br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/BOOT/IMGS/PLPBT.BIN</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /BOOT/IMGS/PLPBT.BIN</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备/BOOT/IMGS/目录下没有PLPBT.BIN文件，就在所有设备上寻找/BOOT/IMGS/PLPBT.BIN文件</span>  <span class="Notes">，并将找到的设备设为根</span><br>
  <span class="bat">kernel </span><strong>/BOOT/IMGS/PLPBT.BIN</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;使用kernel命令加载</span>/<span class="Notes">BOOT/IMGS/PLPBT.BIN</span>文件<br>
<span class="bat">boot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;确定进行启动，菜单中可以省略该句，命令行模式下不可省略</span></p>
<p><span class="Options">title</span> <strong>[04] Acronis Disk Director Server </strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，启动ISO镜像可参见本菜单项格式</span>  <br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/BOOT/IMGS/ADDS.ISO</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /BOOT/IMGS/ADDS.ISO</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备/BOOT/IMGS/目录下没有ADDS.ISO文件，就在所有设备上寻找/BOOT/IMGS/ADDS.ISO文件</span>  <span class="Notes">，并将找到的设备设为根</span><br>
  <span class="bat">map </span><strong>/BOOT/IMGS/ADDS.ISO </strong><span class="bat">(0xff)</span> <span class="Options">||</span> <span class="bat">map </span><span class="Options">--mem</span> <strong>/BOOT/IMGS/ADDS.ISO </strong><span class="bat">(0xff)</span><br>
  <span class="Notes"># &nbsp;&nbsp;&nbsp;先尝试将iso镜像直接仿真为 (0xff)设备（要求镜像连续存放），失败的话再将iso镜像载入内存仿真为(0xff)设备</span><br>
  <span class="bat">map</span> <span class="Options">--hook</span><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;使仿真生效</span>  <br>
  <span class="bat">chainloader</span> <strong>(0xff) </strong><br>
  <span class="Notes"># &nbsp;&nbsp;&nbsp;从(0xff)设备启动 </span>  <br>
<span class="bat">boot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;确定进行启动，菜单中可以省略该句，命令行模式下不可省略</span></p>
<p><span class="Options">title</span> <strong>[05] BIOS Tool</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，启动软驱类镜像可参见本菜单项格式</span>  <br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/BOOT/IMGS/BIOS.IMG</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /BOOT/IMGS/BIOS.IMG</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备/BOOT/IMGS/目录下没有BIOS.IMG文件，就在所有设备上寻找/BOOT/IMGS/BIOS.IMG文件</span> <span class="Notes">，并将找到的设备设为根</span>  <br>
  <span class="bat">map </span><span class="Options">--mem</span> <strong>/BOOT/IMGS/BIOS.IMG  </strong><span class="bat">(fd0)</span><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;将img镜像载入内存后仿真为第一软驱(fd0)</span>  <br>
  <span class="bat">map</span> <span class="Options">--hook</span><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;使仿真生效</span>  <br>
  <span class="bat">rootnoverify</span> <strong>(fd0) </strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置(fd0)为根设备，root在设置根设备前，会测试一下该分区的文件系统是否可以识别，而rootnoverify则省略这一测试</span><br>
  <span class="bat">chainloader</span> <strong>()+1 </strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;链式加载(fd0)的第一个扇区内容</span>  <br>
<span class="bat">boot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;确定进行启动，菜单中可以省略该句，命令行模式下不可省略</span></p>
<p><span class="Options">title</span> <strong>[06] Another Menu List</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题，加载其他菜单文件可参见本菜单项格式</span>  <br>
  <span class="bat">if</span> <span class="Options">not exist</span> <strong>/BOOT/GRUB/MENU2.LST</strong> <span class="Options">&amp;&amp;</span> <span class="bat">find</span> <span class="Options">--set-root</span><strong> /BOOT/GRUB/MENU2.LST</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;如果当前设备/BOOT/GRUB/目录下没有MENU2.LST文件，就在所有设备上寻找/BOOT/GRUB/MENU2.LST文件</span> <span class="Notes">，并将找到的设备设为根</span>  <br>
  <span class="bat">configfile</span> <strong>/BOOT/GRUB/MENU2.LST</strong><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;加载菜单文件</span><span class="Notes">/BOOT/GRUB/MENU2.LST</span></p>
<p><span class="Options">title</span><strong> [07] Reboot the Computer</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题</span> <br>
  <span class="bat">reboot</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;重新启动计算机</span></p>
<p><span class="Options">title</span><strong> [08] Power off the Computer</strong><br>
  <span class="Notes">#&nbsp;&nbsp;&nbsp;设置菜单项标题</span>  <br>
<span class="bat">halt --no-acpi</span> <span class="Options">||</span> <span class="bat">halt --force-sci</span><br>
<span class="Notes">#&nbsp;&nbsp;&nbsp;首先尝试使用APM 关机代码关机，失败的话强制使用ACPI 关机代码关机</span></p>
<p>&nbsp;</p>
</body>
</html>
